<script lang="ts" setup>
import { useData } from 'vitepress';
import VPSwitchAppearance from './VPSwitchAppearance.vue';

const { site } = useData();
</script>

<template>
    <div v-if="site.appearance" class="VPNavScreenAppearance">
        <div>
            <p class="text">Gitee</p>
            <div class="appearance-action">
                <a href="https://gitee.com/ubml/farris-vue" target="_blank" class="address" title="前往Farris Vue"><img src="/assets/gitee.svg" /></a>
            </div>
        </div>
        <div>
            <p class="text">Appearance</p>
            <VPSwitchAppearance />
        </div>
    </div>
</template>

<style scoped>
.VPNavScreenAppearance {
    transition: background-color 0.5s;
}
.address{
  display: block;
  width:18px;
  margin-right:10px;
}
.VPNavScreenAppearance > div {
    border-radius: 8px;
    padding: 12px 14px 12px 16px;
    background-color: var(--vp-c-bg-soft);
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.text {
    line-height: 24px;
    font-size: 12px;
    font-weight: 500;
    color: var(--vp-c-text-2);
    transition: color 0.5s;
}
</style>
